using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using Jink.Protocol.Core;
using Jink.Protocol.Core.Headers;

namespace Jink.Playground.MockProtocol
{
    internal class MockResponseMedia : IResponseMedia
    {
        public int StatusCode { get; set; }

        public Encoding HeaderEncoding { get { throw new NotSupportedException(); } set { throw new NotSupportedException(); } }
        public IDictionary<ResponseHeader, String> Headers { get { throw new NotSupportedException(); } }
        public IDictionary<String, String> Cookies { get { throw new NotSupportedException(); } }

        public Encoding ContentEncoding { get; set; }
        public String ContentType { get; set; }
        private StringBuilder _content = new StringBuilder();
        public TextWriter Content { get { return new StringWriter(_content); } }
        public Stream ContentStream { get { throw new NotSupportedException(); } }

        public void DoComplete() { /* do nothing */ }
    }
}